<?php /* Smarty version 2.6.16, created on 2013-09-03 11:56:58
         compiled from ../templates/admin/manageleads/show_suburb.tpl */ ?>

<?php if ($_GET['stateid']): ?>
  <select name="suburbid" id="suburbid" class="select" onchange="showpostalcode(this.value);">
      <option value="">--Select Suburb--</option>
      <?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['suburbArray']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
      <option value="<?php echo $this->_tpl_vars['suburbArray'][$this->_sections['i']['index']]['id']; ?>
" <?php if ($this->_tpl_vars['suburbArray'][$this->_sections['i']['index']]['id'] == $_POST['suburbid']): ?> selected="selected" <?php endif; ?>><?php echo $this->_tpl_vars['suburbArray'][$this->_sections['i']['index']]['suburb']; ?>
</option>
      <?php endfor; endif; ?>
  </select>
<?php endif; ?>

<?php if ($_GET['suburbid']): ?>
<input type="text" class="input" name="postalcode" id="postalcode" value="<?php echo $this->_tpl_vars['getpostalcodedetail']['postcode']; ?>
" readonly="readonly" />
<?php endif; ?>